#ifndef _PWM_H
#define _PWM_H
#include <metal/cpu.h>
#include <metal/machine/platform.h>
#include <metal/machine.h>
#include <metal/gpio.h>
#include <metal/io.h>
#include "reg.h"
#define CMP0 250

void pwm_init(int scale);
void pwm0_setcmp(int cmp_num,int cmp);
void pwm1_setcmp(int cmp_num,int cmp);
#endif
